
from pts.models import AppEXCD
import django.dispatch


app_created = django.dispatch.Signal(providing_args=["inst", ])

class AppNodeCD(object):

    
    @classmethod
    def create(cls,appcode,flow):
        inst,c = AppEXCD.objects.get_or_create(appcode=appcode,flow=flow)
        if c:
            app_created.send(sender=flow, inst=inst)
    

    def get_app(self):
        pass
        
    def write(self):
        pass
    
    
    
    